<?php
/**
 * Category model
 *
 * Utilizes the Data Mapper pattern to persist data. Represents a single 
 * category entry.
 * 
 * @uses       Model_Entity_BaseBean
 * @package    FireFeed
 * @subpackage Model
 */
class Model_Entity_Category extends Model_Entity_BaseBean
{
	protected $_name;
	protected $_description;
	
	/**
	 * @var array of Model_Entity_Feed
	 */
	protected $_feeds;
	
	/**
	 * User who created this category
	 * 
	 * @var Model_Entity_User
	 */
	protected $_createdBy;
	
	/**
	 * Users that have this category
	 * 
	 * @var array of Model_Entity_User
	 */
	protected $_owners;
	
	/**
     * Constructor
     * 
     * @param  array|null $options 
     * @return void
     */
	public function __construct(array $options = null)
	{
		parent::__construct($options);
	}
	
	public function setName($name)
	{
		$this->_name = $name;
	}
	
	public function getName()
	{
		return $this->_name;
	}
	
	public function setDescription($description)
	{
		$this->_description = $description;
	}
	
	public function getDescription()
	{
		return $this->_description;
	}
	
    public function setFeeds($feeds)
    {
        $this->_feeds = $feeds;
    }
    
    public function getFeeds()
    {
        return $this->_feeds;
    }

    public function setOwners($owners) {
		$this->_owners = $owners;
	}

	public function getOwners() {
		return $this->_owners;
	}

	public function setCreatedBy($createdBy) {
		$this->_createdBy = $createdBy;
	}

	public function getCreatedBy() {
		return $this->_createdBy;
	}
}